// McHandler.h: interface for the McHandler class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MCHANDLER_H__81A364E7_DDF5_4134_A5BA_B8E53FB79147__INCLUDED_)
#define AFX_MCHANDLER_H__81A364E7_DDF5_4134_A5BA_B8E53FB79147__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "..\McSocket.h"

enum Me_Handler_Type
{
	NONE_HANDLER,
	ROUTE_HANDLER,
};
class McHandler : public McSocketHandler
{
	virtual int after_open();
	virtual int after_read_frame(const char* data, long length);
	virtual int after_close();
	Me_Handler_Type handler_type_;
public:
	McHandler();
	virtual ~McHandler();
	string route_ap_;
};
class McAcceptor : public ACE_Acceptor<McHandler, ACE_SOCK_ACCEPTOR>
{
	
};
typedef ACE_Unmanaged_Singleton<McAcceptor, ACE_Null_Mutex> ACCEPTOR;

#endif // !defined(AFX_MCHANDLER_H__81A364E7_DDF5_4134_A5BA_B8E53FB79147__INCLUDED_)
